<?php
namespace app\controller;

use app\BaseController;
use Swagger\Annotations as SWG;

class Index extends BaseController
{
    public function index()
    {
        echo "11";
    }

    public function createJson()
    {
        $swagger = \Swagger\scan(__DIR__);  
        $swagger->saveAs('./swagger.json'); 
        echo date('Y-m-d H:i:s') . '创建json完成'; 
    }
}
